/**
 * PictureCommentDaoImp.java
 *
 *
 * $LastChangedBy: allen $
 * $LastChangedDate: 2007-12-07 15:48:34 +0800 $
 * $Revision: 1399 $
 */
package com.myspace.dao.hibernate;

import java.util.List;

import com.myspace.dao.PictureCommentDao;
import com.myspace.domain.PictureComment;

/**
 *
 * @author Allen.Chen
 *
 */
public class PictureCommentDaoImp extends GenericDaoImp<PictureComment,Long> implements PictureCommentDao {

	@SuppressWarnings("unchecked")
	public List<PictureComment> findCommentsList(Long picId) {
		return (List<PictureComment>)getHibernateTemplate().find("from PictureComment where picId=?", picId);
	}

}
